<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Welcome to Bikin Kaos Bebas</title>
<link rel="shortcut icon" href="<?=base_url()?>assets/css/temp/images/bikinkaosbebas-02.png" />
<link rel="stylesheet" href="<?=base_url()?>assets/css/temp/style.css" type="text/css" media="all" />
<link rel="stylesheet" href="<?=base_url()?>assets/css/temp/menu.css" type="text/css" media="all" />
<link rel="stylesheet" href="<?=base_url()?>assets/css/easyui/bootstrap/easyui.css">
<link rel="stylesheet" href="<?=base_url()?>assets/css/easyui/icon.css">
<link rel="stylesheet" href="<?=base_url()?>assets/css/main_front.css">

<script>(function(d, s, id) {
				  var js, fjs = d.getElementsByTagName(s)[0];
				  if (d.getElementById(id)) return;
				  js = d.createElement(s); js.id = id;
				  js.src = "//connect.facebook.net/id_ID/all.js#xfbml=1";
				  fjs.parentNode.insertBefore(js, fjs);
				}(document, 'script', 'facebook-jssdk'));
</script>
<script>
var host="<?=base_url()?>";
var user_id='<?=$user_id?>';
var user_group='<?=$group_user_id?>';
var nama='<?=$nama_lengkap?>';
</script>
<!--[if IE 6]>
	<script src="js/DD_belatedPNG-min.js" type="text/javascript" charset="utf-8"></script>
<![endif]-->

<script type="text/javascript" src="<?=base_url()?>assets/js/jquery-1.8.0.min.js"></script>
<script type="text/javascript" src="<?=base_url()?>assets/js/jquery.easyui.min.js"></script>
<script type="text/javascript" src="<?=base_url()?>assets/js/vticker.js"></script>

<script src="<?=base_url()?>assets/js/temp/jquery.jcarousel.min.js" type="text/javascript" charset="utf-8"></script>
<script src="<?=base_url()?>assets/js/temp/functions.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" src="<?=base_url()?>assets/js/fungsi.js"></script>
</head>

<body>


<!-- Begin Wrapper -->
	<div id="wrapper">
		<!-- Begin Inner -->
		<div class="inner" >
				<div style="width:100%; height:44px; margin-top:-10px; background:url(<?=base_url();?>assets/images/atas.png)repeat scroll center 0 transparent">
						<div style="margin-left:250px; margin-top:10px; padding-top:10px;">
							<!-- AddToAny BEGIN -->
							<div class="a2a_kit a2a_default_style" style="width:200px;margin-top:5px; margin-left:-10px;">
							<a class="a2a_dd" href="http://www.addtoany.com/share_save?linkurl=http%3A%2F%2Fbikinkaosbebas.com%2Fbeta%2F&amp;linkname=BikinKaosBebas.com">Share</a>
							<span class="a2a_divider"></span>
							<a class="a2a_button_facebook"></a>
							<a class="a2a_button_twitter"></a>
							<a class="a2a_button_email"></a>
							</div>
							<script type="text/javascript">
							var a2a_config = a2a_config || {};
							a2a_config.linkname = "BikinKaosBebas.com";
							a2a_config.linkurl = "http://bikinkaosbebas.com/beta/";
							</script>
							<script type="text/javascript" src="http://static.addtoany.com/menu/page.js"></script>
							<!-- AddToAny END -->
						</div>
						<div style="margin-top:-17px;float:right; width:300px; margin-right:110px;">
							<span id="info_na"></span>
						</div>	
				</div>
			<!-- Begin Header -->
			<div id="header">
				<div class="header-inner">
					<!-- Begin Shell -->
					<div class="shell">
						<h1 id="logo"><a class="notext" href="#">World of TShirts</a></h1>
						<div id="account">
							
						</div>
							<? include "menu.php"?>
						<div class="cl">&nbsp;</div>
					</div>
					<!-- End Shell -->
				</div>
			</div>
			<!-- End Header -->
			<!-- Begin Shell -->
			<div class="shell">
				<!-- Begin Main -->
				<div id="main">
					<!-- Begin Sidebar -->
					<div id="sidebar">
						<ul>
							<!-- Begin Widget kategori -->
							<? include "kategori.php"; ?>
							<!-- End Widget kategori-->
							
							<!-- Begin Widget pencarian-->
							<? include "cs.php"; ?>
							<? include "search.php"; ?>
							<!-- End Widget pencarian-->
						</ul>
					</div>
					<!-- End Sidebar -->
					<!-- Begin Content -->
					<div id="content">
						<!-- Begin Slider -->
						<div id="slider">
							<div class="slider-frame">&nbsp;</div>
							<ul class="slider-items">
								<li><img src="<?=base_url()?>assets/images/slider/slide1.png" alt="Slide 1" /></li>
								<li><img src="<?=base_url()?>assets/images/slider/slide2.png" alt="Slide 2" /></li>
								<li><img src="<?=base_url()?>assets/images/slider/slide3.png" alt="Slide 3" /></li>
								<li><img src="<?=base_url()?>assets/images/slider/slide4.png" alt="Slide 4" /></li>
							</ul>
							<div class="cl">&nbsp;</div>
							<div class="slider-controls">
								<ul></ul>
								<div class="cl">&nbsp;</div>
							</div>
						</div>
						<!-- End Slider -->
						
						<?=$this->load->view($view)?>
				
					</div>
					<!-- End Content -->
					<div class="cl">&nbsp;</div>
					<!-- Begin Products Slider -->
					<div id="pr-slider" style="padding:5px;">
						<ul>
						<? foreach ($produk as $v) {?>
							<li><div class="prod_main"><a href="<?=base_url()?>frontend/product/<?=$v["id"]?>"><img src="<?=base_url()?>repositori/produk_user/<?=$v['foto_3']?>" alt="<?=$v['nama_produk']; ?>" style="width:125px; height:146px;" /></a></div></li>
							<li><div class="prod_main"><a href="<?=base_url()?>frontend/product/<?=$v["id"]?>"><img src="<?=base_url()?>repositori/produk_user/<?=$v['foto_2']?>" alt="<?=$v['nama_produk']; ?>" style="width:125px; height:146px;" /></a></div></li>
						<? } ?>
						</ul>
						<div class="cl">&nbsp;</div>
					</div>
					<!-- End Products Slider -->
					<!-- Begin Home Boxes -->
					
				</div>
				<!-- End Main -->
				<!-- Begin Footer -->
				<div id="footer">
					<div align="center" style="margin:5px;">
						<a href="<?=base_url()?>frontend/get_form/label">Indexs Toko</a>&nbsp; |  &nbsp; 
						<a href="<?=base_url()?>frontend/get_form/warna">Panduan Ukuran & Warna</a>&nbsp; |  &nbsp;
						<a href="<?=base_url()?>frontend/get_form/harga">Harga</a>&nbsp; |  &nbsp; 
						<a href="<?=base_url()?>frontend/get_form/tentang">About As</a>&nbsp; |  &nbsp;
						<a href="<?=base_url()?>frontend/agen">Reseller / Dropsit</a>&nbsp; |  &nbsp;
						<a href="<?=base_url()?>frontend/faq">FAQ</a>&nbsp; |  &nbsp;
						<a href="#">Syarat & Ketentuan</a>&nbsp; |  &nbsp;
					</div>
					
				</div>
				<!-- End Footer -->
			</div>
			<!-- End Shell -->
		</div>
		<!-- End Inner -->
	</div>
	<!-- End Wrapper -->
	
    </div>  
</body>
</html>

<script>
var data_na;
$("#atas_na").css("width",lebar);
if(user_id!=''){
	data_na='<div style="width:400px; margin-left:-60px; height:27px;"><span style="color:red">Login Sebagai : <a href="'+host+'login"><b>'+nama+'</b></a></span> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<a href="'+host+'login/logout_na" id="keluar">LogOut</a></div>';
	$('#info_na').html(data_na);
}
else{
	data_na='<div style="width:208px; height:27px;"><a href="#" id="sign_up" onclick="tampil(1,1)" style="width:80px;">Daftar</a><br /><br /><a href="'+host+'login" id="login_na" style="width:80px;margin:-44px 107px;position:absolute;">Login</a></div>'
	$('#info_na').html(data_na);
	
}

$('#sign_up').linkbutton({  
			iconCls: 'sign_up'  
});

$('#login_na').linkbutton({  
			iconCls: 'login_na'
			
});

$('#keluar').linkbutton({  
			iconCls: 'logout_na'
			
});
</script>
